<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="事件编号" prop="reportEventNumber">
        <el-input
          v-model="queryParams.reportEventNumber"
          placeholder="请输入事件编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="事件基本信息表ID" prop="basicEventId">
        <el-input
          v-model="queryParams.basicEventId"
          placeholder="请输入事件基本信息表ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="上报事件状态" prop="reportEventState">
        <el-select v-model="queryParams.reportEventState" placeholder="请选择上报事件状态" clearable>
          <el-option
            v-for="dict in dict.type.he_report_event_state"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="上报事件类型" prop="reportEventType">
        <el-select v-model="queryParams.reportEventType" placeholder="请选择上报事件类型" clearable>
          <el-option
            v-for="dict in dict.type.he_report_event_type"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="一级分类" prop="reportFirstLevel">
        <el-input
          v-model="queryParams.reportFirstLevel"
          placeholder="请输入一级分类"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="二级分类" prop="reportSecondLevel">
        <el-input
          v-model="queryParams.reportSecondLevel"
          placeholder="请输入二级分类"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="采取措施" prop="situationMeasuresEvent">
        <el-select v-model="queryParams.situationMeasuresEvent" placeholder="请选择采取措施" clearable>
          <el-option
            v-for="dict in dict.type.he_situation_measures_event"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="涉及患者" prop="patientInvolved">
        <el-select v-model="queryParams.patientInvolved" placeholder="请选择涉及患者" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_involved"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="患者ID" prop="patientId">
        <el-input
          v-model="queryParams.patientId"
          placeholder="请输入患者ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="患者编号" prop="patientNumber">
        <el-input
          v-model="queryParams.patientNumber"
          placeholder="请输入患者编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="诊断类别" prop="patientDiagnosisCategory">
        <el-select v-model="queryParams.patientDiagnosisCategory" placeholder="请选择诊断类别" clearable>
          <el-option
            v-for="dict in dict.type.he_diagnosis_category"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="病历号/门诊号" prop="patientRecordOutpatient">
        <el-input
          v-model="queryParams.patientRecordOutpatient"
          placeholder="请输入病历号/门诊号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="患者姓名" prop="patientName">
        <el-input
          v-model="queryParams.patientName"
          placeholder="请输入患者姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="患者性别" prop="patientGender">
        <el-select v-model="queryParams.patientGender" placeholder="请选择患者性别" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_gender"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="患者出生日期" prop="patientDateOfBirth">
        <el-date-picker clearable
          v-model="queryParams.patientDateOfBirth"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择患者出生日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="患者年龄" prop="patientAge">
        <el-input
          v-model="queryParams.patientAge"
          placeholder="请输入患者年龄"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="患者年龄阶段" prop="patientAgeStage">
        <el-select v-model="queryParams.patientAgeStage" placeholder="请选择患者年龄阶段" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_age_grades"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="患者民族" prop="patientEthnicGroup">
        <el-select v-model="queryParams.patientEthnicGroup" placeholder="请选择患者民族" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_ethnic_group"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="患者体重" prop="patientWeight">
        <el-input
          v-model="queryParams.patientWeight"
          placeholder="请输入患者体重"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="原患疾病" prop="patientPreDisease">
        <el-input
          v-model="queryParams.patientPreDisease"
          placeholder="请输入原患疾病"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="联系方式" prop="patientContact">
        <el-input
          v-model="queryParams.patientContact"
          placeholder="请输入联系方式"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="家属电话" prop="patientFamilyNumber">
        <el-input
          v-model="queryParams.patientFamilyNumber"
          placeholder="请输入家属电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="就诊时间" prop="patientAdmissionTime">
        <el-date-picker clearable
          v-model="queryParams.patientAdmissionTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择就诊时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="科室" prop="patientDepartment">
        <el-input
          v-model="queryParams.patientDepartment"
          placeholder="请输入科室"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="床号" prop="patientBedNumber">
        <el-input
          v-model="queryParams.patientBedNumber"
          placeholder="请输入床号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="护理级别" prop="patientNursingLevel">
        <el-select v-model="queryParams.patientNursingLevel" placeholder="请选择护理级别" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_nursing_level"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="文化程度" prop="patientEducationLevel">
        <el-select v-model="queryParams.patientEducationLevel" placeholder="请选择文化程度" clearable>
          <el-option
            v-for="dict in dict.type.he_patient_education_level"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="发生时间" prop="occurrenceTime">
        <el-date-picker clearable
          v-model="queryParams.occurrenceTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择发生时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="发生日期" prop="occurrenceDate">
        <el-date-picker clearable
          v-model="queryParams.occurrenceDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择发生日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="日期类型" prop="occurrenceDateType">
        <el-select v-model="queryParams.occurrenceDateType" placeholder="请选择日期类型" clearable>
          <el-option
            v-for="dict in dict.type.he_date_type"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="发生时段" prop="occurrenceTimePeriod">
        <el-select v-model="queryParams.occurrenceTimePeriod" placeholder="请选择发生时段" clearable>
          <el-option
            v-for="dict in dict.type.he_occurrence_time_period"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="发生地点" prop="occurrenceLocation">
        <el-input
          v-model="queryParams.occurrenceLocation"
          placeholder="请输入发生地点"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="现场照片" prop="occurrenceScenePhotos">
        <el-input
          v-model="queryParams.occurrenceScenePhotos"
          placeholder="请输入现场照片"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="当事人姓名" prop="partyName">
        <el-input
          v-model="queryParams.partyName"
          placeholder="请输入当事人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="当事人年龄" prop="partyAge">
        <el-input
          v-model="queryParams.partyAge"
          placeholder="请输入当事人年龄"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="当事人工作年限" prop="partyYearsOfExperience">
        <el-select v-model="queryParams.partyYearsOfExperience" placeholder="请选择当事人工作年限" clearable>
          <el-option
            v-for="dict in dict.type.he_years_of_experience"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="当事人工作类别" prop="partyCategory">
        <el-select v-model="queryParams.partyCategory" placeholder="请选择当事人工作类别" clearable>
          <el-option
            v-for="dict in dict.type.he_category"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="当事人学历" prop="partyEducation">
        <el-select v-model="queryParams.partyEducation" placeholder="请选择当事人学历" clearable>
          <el-option
            v-for="dict in dict.type.he_education"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="当事人职务" prop="partyPosition">
        <el-select v-model="queryParams.partyPosition" placeholder="请选择当事人职务" clearable>
          <el-option
            v-for="dict in dict.type.he_position"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="当事人岗位" prop="partyPost">
        <el-select v-model="queryParams.partyPost" placeholder="请选择当事人岗位" clearable>
          <el-option
            v-for="dict in dict.type.he_party_post"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="纠纷可能性" prop="resultsPossibilityDispute">
        <el-select v-model="queryParams.resultsPossibilityDispute" placeholder="请选择纠纷可能性" clearable>
          <el-option
            v-for="dict in dict.type.he_possibility_of_dispute"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="事件严重程度" prop="resultsEventSeverity">
        <el-select v-model="queryParams.resultsEventSeverity" placeholder="请选择事件严重程度" clearable>
          <el-option
            v-for="dict in dict.type.he_event_severity"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="事件分级" prop="resultsEventClassification">
        <el-select v-model="queryParams.resultsEventClassification" placeholder="请选择事件分级" clearable>
          <el-option
            v-for="dict in dict.type.he_event_classification"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="伤害严重度" prop="resultsSeverityInjury">
        <el-select v-model="queryParams.resultsSeverityInjury" placeholder="请选择伤害严重度" clearable>
          <el-option
            v-for="dict in dict.type.he_severity_of_injury"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="呈报方式" prop="reportMethod">
        <el-select v-model="queryParams.reportMethod" placeholder="请选择呈报方式" clearable>
          <el-option
            v-for="dict in dict.type.he_reporting_method"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="上报科室ID" prop="reportDepartmentId">
        <el-input
          v-model="queryParams.reportDepartmentId"
          placeholder="请输入上报科室ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="上报科室" prop="reportDepartment">
        <el-input
          v-model="queryParams.reportDepartment"
          placeholder="请输入上报科室"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="上报状态" prop="reportStatus">
        <el-select v-model="queryParams.reportStatus" placeholder="请选择上报状态" clearable>
          <el-option
            v-for="dict in dict.type.he_report_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="填报人ID" prop="reportFillerId">
        <el-input
          v-model="queryParams.reportFillerId"
          placeholder="请输入填报人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="填报人" prop="reportFiller">
        <el-input
          v-model="queryParams.reportFiller"
          placeholder="请输入填报人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报告时间" prop="reportTime">
        <el-date-picker clearable
          v-model="queryParams.reportTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择报告时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="附件图片" prop="reportAttachedImages">
        <el-input
          v-model="queryParams.reportAttachedImages"
          placeholder="请输入附件图片"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核状态" prop="reviewStatus">
        <el-select v-model="queryParams.reviewStatus" placeholder="请选择审核状态" clearable>
          <el-option
            v-for="dict in dict.type.he_review_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="呈送科室ID" prop="reviewDepartmentId">
        <el-input
          v-model="queryParams.reviewDepartmentId"
          placeholder="请输入呈送科室ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="呈送科室" prop="reviewDepartment">
        <el-input
          v-model="queryParams.reviewDepartment"
          placeholder="请输入呈送科室"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核人ID" prop="reviewPersonId">
        <el-input
          v-model="queryParams.reviewPersonId"
          placeholder="请输入审核人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核人" prop="reviewPerson">
        <el-input
          v-model="queryParams.reviewPerson"
          placeholder="请输入审核人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核时间" prop="reviewTime">
        <el-date-picker clearable
          v-model="queryParams.reviewTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择审核时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="事件类型判定" prop="reviewEventType">
        <el-select v-model="queryParams.reviewEventType" placeholder="请选择事件类型判定" clearable>
          <el-option
            v-for="dict in dict.type.he_review_event_type"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="回退状态" prop="fallbackStatus">
        <el-select v-model="queryParams.fallbackStatus" placeholder="请选择回退状态" clearable>
          <el-option
            v-for="dict in dict.type.he_fallback_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="回退人ID" prop="fallbackPersonId">
        <el-input
          v-model="queryParams.fallbackPersonId"
          placeholder="请输入回退人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="回退人" prop="fallbackPerson">
        <el-input
          v-model="queryParams.fallbackPerson"
          placeholder="请输入回退人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="作废状态" prop="invalidationStatus">
        <el-select v-model="queryParams.invalidationStatus" placeholder="请选择作废状态" clearable>
          <el-option
            v-for="dict in dict.type.he_invalidation_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="作废人ID" prop="invalidationPersonId">
        <el-input
          v-model="queryParams.invalidationPersonId"
          placeholder="请输入作废人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="作废人" prop="invalidationPerson">
        <el-input
          v-model="queryParams.invalidationPerson"
          placeholder="请输入作废人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="处理状态" prop="handlingStatus">
        <el-select v-model="queryParams.handlingStatus" placeholder="请选择处理状态" clearable>
          <el-option
            v-for="dict in dict.type.he_handling_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="处理照片(呈送科室)" prop="handlingPicture">
        <el-input
          v-model="queryParams.handlingPicture"
          placeholder="请输入处理照片(呈送科室)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="处理人ID(呈送科室)" prop="handingPersonId">
        <el-input
          v-model="queryParams.handingPersonId"
          placeholder="请输入处理人ID(呈送科室)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="处理人(呈送科室)" prop="handingPerson">
        <el-input
          v-model="queryParams.handingPerson"
          placeholder="请输入处理人(呈送科室)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分析报告" prop="analyzeReports">
        <el-select v-model="queryParams.analyzeReports" placeholder="请选择分析报告" clearable>
          <el-option
            v-for="dict in dict.type.he_analyze_reports"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="报告ID" prop="analyzeReportsId">
        <el-input
          v-model="queryParams.analyzeReportsId"
          placeholder="请输入报告ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="协助部门一" prop="supportDepartmentOne">
        <el-input
          v-model="queryParams.supportDepartmentOne"
          placeholder="请输入协助部门一"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门一处理照片" prop="supportOnePicture">
        <el-input
          v-model="queryParams.supportOnePicture"
          placeholder="请输入部门一处理照片"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门一处理人ID" prop="supportOnePersonId">
        <el-input
          v-model="queryParams.supportOnePersonId"
          placeholder="请输入部门一处理人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门一处理人" prop="supportOnePerson">
        <el-input
          v-model="queryParams.supportOnePerson"
          placeholder="请输入部门一处理人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="协助部门二" prop="supportDepartmentTwo">
        <el-input
          v-model="queryParams.supportDepartmentTwo"
          placeholder="请输入协助部门二"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门二处理照片" prop="supportTwoPicture">
        <el-input
          v-model="queryParams.supportTwoPicture"
          placeholder="请输入部门二处理照片"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门二处理人ID" prop="supportTwoPersonId">
        <el-input
          v-model="queryParams.supportTwoPersonId"
          placeholder="请输入部门二处理人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门二处理人" prop="supportTwoPerson">
        <el-input
          v-model="queryParams.supportTwoPerson"
          placeholder="请输入部门二处理人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="事件归档" prop="eventDeterminatione">
        <el-select v-model="queryParams.eventDeterminatione" placeholder="请选择事件归档" clearable>
          <el-option
            v-for="dict in dict.type.he_event_determinatione"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="事件归档人ID" prop="eventDeterminationePersonId">
        <el-input
          v-model="queryParams.eventDeterminationePersonId"
          placeholder="请输入事件归档人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="事件归档人" prop="eventDeterminationePerson">
        <el-input
          v-model="queryParams.eventDeterminationePerson"
          placeholder="请输入事件归档人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注1" prop="note1">
        <el-input
          v-model="queryParams.note1"
          placeholder="请输入备注1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注2" prop="note2">
        <el-input
          v-model="queryParams.note2"
          placeholder="请输入备注2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注3" prop="note3">
        <el-input
          v-model="queryParams.note3"
          placeholder="请输入备注3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注4" prop="note4">
        <el-input
          v-model="queryParams.note4"
          placeholder="请输入备注4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注5" prop="note5">
        <el-input
          v-model="queryParams.note5"
          placeholder="请输入备注5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注6" prop="note6">
        <el-input
          v-model="queryParams.note6"
          placeholder="请输入备注6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注7" prop="note7">
        <el-input
          v-model="queryParams.note7"
          placeholder="请输入备注7"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注8" prop="note8">
        <el-input
          v-model="queryParams.note8"
          placeholder="请输入备注8"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注9" prop="note9">
        <el-input
          v-model="queryParams.note9"
          placeholder="请输入备注9"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注10" prop="note10">
        <el-input
          v-model="queryParams.note10"
          placeholder="请输入备注10"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建时间" prop="creationTime">
        <el-date-picker clearable
          v-model="queryParams.creationTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择创建时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="用户ID" prop="userId">
        <el-input
          v-model="queryParams.userId"
          placeholder="请输入用户ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门ID" prop="deptId">
        <el-input
          v-model="queryParams.deptId"
          placeholder="请输入部门ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['project:report:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['project:report:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['project:report:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['project:report:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="id" align="center" prop="id" />
      <el-table-column label="事件编号" align="center" prop="reportEventNumber" />
      <el-table-column label="事件基本信息表ID" align="center" prop="basicEventId" />
      <el-table-column label="上报事件状态" align="center" prop="reportEventState">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_report_event_state" :value="scope.row.reportEventState"/>
        </template>
      </el-table-column>
      <el-table-column label="上报事件类型" align="center" prop="reportEventType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_report_event_type" :value="scope.row.reportEventType"/>
        </template>
      </el-table-column>
      <el-table-column label="一级分类" align="center" prop="reportFirstLevel" />
      <el-table-column label="二级分类" align="center" prop="reportSecondLevel" />
      <el-table-column label="描述经过" align="center" prop="situationEdescriptionProcess" />
      <el-table-column label="采取措施" align="center" prop="situationMeasuresEvent">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_situation_measures_event" :value="scope.row.situationMeasuresEvent"/>
        </template>
      </el-table-column>
      <el-table-column label="处理措施" align="center" prop="situationTakenMeasures" />
      <el-table-column label="引起后果" align="center" prop="situationCausesconsequences" />
      <el-table-column label="涉及患者" align="center" prop="patientInvolved">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_involved" :value="scope.row.patientInvolved"/>
        </template>
      </el-table-column>
      <el-table-column label="患者ID" align="center" prop="patientId" />
      <el-table-column label="患者编号" align="center" prop="patientNumber" />
      <el-table-column label="诊断类别" align="center" prop="patientDiagnosisCategory">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_diagnosis_category" :value="scope.row.patientDiagnosisCategory"/>
        </template>
      </el-table-column>
      <el-table-column label="病历号/门诊号" align="center" prop="patientRecordOutpatient" />
      <el-table-column label="患者姓名" align="center" prop="patientName" />
      <el-table-column label="患者性别" align="center" prop="patientGender">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_gender" :value="scope.row.patientGender"/>
        </template>
      </el-table-column>
      <el-table-column label="患者出生日期" align="center" prop="patientDateOfBirth" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.patientDateOfBirth, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="患者年龄" align="center" prop="patientAge" />
      <el-table-column label="患者年龄阶段" align="center" prop="patientAgeStage">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_age_grades" :value="scope.row.patientAgeStage"/>
        </template>
      </el-table-column>
      <el-table-column label="患者民族" align="center" prop="patientEthnicGroup">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_ethnic_group" :value="scope.row.patientEthnicGroup"/>
        </template>
      </el-table-column>
      <el-table-column label="患者体重" align="center" prop="patientWeight" />
      <el-table-column label="原患疾病" align="center" prop="patientPreDisease" />
      <el-table-column label="联系方式" align="center" prop="patientContact" />
      <el-table-column label="家属电话" align="center" prop="patientFamilyNumber" />
      <el-table-column label="就诊时间" align="center" prop="patientAdmissionTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.patientAdmissionTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="科室" align="center" prop="patientDepartment" />
      <el-table-column label="床号" align="center" prop="patientBedNumber" />
      <el-table-column label="护理级别" align="center" prop="patientNursingLevel">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_nursing_level" :value="scope.row.patientNursingLevel"/>
        </template>
      </el-table-column>
      <el-table-column label="文化程度" align="center" prop="patientEducationLevel">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_patient_education_level" :value="scope.row.patientEducationLevel"/>
        </template>
      </el-table-column>
      <el-table-column label="诊断" align="center" prop="patientDiagnosis" />
      <el-table-column label="发生时间" align="center" prop="occurrenceTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.occurrenceTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="发生日期" align="center" prop="occurrenceDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.occurrenceDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="日期类型" align="center" prop="occurrenceDateType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_date_type" :value="scope.row.occurrenceDateType"/>
        </template>
      </el-table-column>
      <el-table-column label="发生时段" align="center" prop="occurrenceTimePeriod">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_occurrence_time_period" :value="scope.row.occurrenceTimePeriod"/>
        </template>
      </el-table-column>
      <el-table-column label="发生地点" align="center" prop="occurrenceLocation" />
      <el-table-column label="现场照片" align="center" prop="occurrenceScenePhotos" />
      <el-table-column label="当事人姓名" align="center" prop="partyName" />
      <el-table-column label="当事人年龄" align="center" prop="partyAge" />
      <el-table-column label="当事人工作年限" align="center" prop="partyYearsOfExperience">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_years_of_experience" :value="scope.row.partyYearsOfExperience"/>
        </template>
      </el-table-column>
      <el-table-column label="当事人工作类别" align="center" prop="partyCategory">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_category" :value="scope.row.partyCategory"/>
        </template>
      </el-table-column>
      <el-table-column label="当事人学历" align="center" prop="partyEducation">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_education" :value="scope.row.partyEducation"/>
        </template>
      </el-table-column>
      <el-table-column label="当事人职务" align="center" prop="partyPosition">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_position" :value="scope.row.partyPosition"/>
        </template>
      </el-table-column>
      <el-table-column label="当事人岗位" align="center" prop="partyPost">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_party_post" :value="scope.row.partyPost"/>
        </template>
      </el-table-column>
      <el-table-column label="纠纷可能性" align="center" prop="resultsPossibilityDispute">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_possibility_of_dispute" :value="scope.row.resultsPossibilityDispute"/>
        </template>
      </el-table-column>
      <el-table-column label="事件严重程度" align="center" prop="resultsEventSeverity">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_event_severity" :value="scope.row.resultsEventSeverity"/>
        </template>
      </el-table-column>
      <el-table-column label="事件分级" align="center" prop="resultsEventClassification">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_event_classification" :value="scope.row.resultsEventClassification"/>
        </template>
      </el-table-column>
      <el-table-column label="伤害严重度" align="center" prop="resultsSeverityInjury">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_severity_of_injury" :value="scope.row.resultsSeverityInjury"/>
        </template>
      </el-table-column>
      <el-table-column label="呈报方式" align="center" prop="reportMethod">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_reporting_method" :value="scope.row.reportMethod"/>
        </template>
      </el-table-column>
      <el-table-column label="上报科室ID" align="center" prop="reportDepartmentId" />
      <el-table-column label="上报科室" align="center" prop="reportDepartment" />
      <el-table-column label="上报状态" align="center" prop="reportStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_report_status" :value="scope.row.reportStatus"/>
        </template>
      </el-table-column>
      <el-table-column label="填报人ID" align="center" prop="reportFillerId" />
      <el-table-column label="填报人" align="center" prop="reportFiller" />
      <el-table-column label="报告时间" align="center" prop="reportTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.reportTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="附件图片" align="center" prop="reportAttachedImages" />
      <el-table-column label="其他信息备注" align="center" prop="reportOtherRemarks" />
      <el-table-column label="审核状态" align="center" prop="reviewStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_review_status" :value="scope.row.reviewStatus"/>
        </template>
      </el-table-column>
      <el-table-column label="呈送科室ID" align="center" prop="reviewDepartmentId" />
      <el-table-column label="呈送科室" align="center" prop="reviewDepartment" />
      <el-table-column label="审核人ID" align="center" prop="reviewPersonId" />
      <el-table-column label="审核人" align="center" prop="reviewPerson" />
      <el-table-column label="审核时间" align="center" prop="reviewTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.reviewTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核意见" align="center" prop="reviewAdvice" />
      <el-table-column label="事件类型判定" align="center" prop="reviewEventType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_review_event_type" :value="scope.row.reviewEventType"/>
        </template>
      </el-table-column>
      <el-table-column label="回退状态" align="center" prop="fallbackStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_fallback_status" :value="scope.row.fallbackStatus"/>
        </template>
      </el-table-column>
      <el-table-column label="回退原因" align="center" prop="fallbackReason" />
      <el-table-column label="回退人ID" align="center" prop="fallbackPersonId" />
      <el-table-column label="回退人" align="center" prop="fallbackPerson" />
      <el-table-column label="作废状态" align="center" prop="invalidationStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_invalidation_status" :value="scope.row.invalidationStatus"/>
        </template>
      </el-table-column>
      <el-table-column label="作废原因" align="center" prop="invalidationReason" />
      <el-table-column label="作废人ID" align="center" prop="invalidationPersonId" />
      <el-table-column label="作废人" align="center" prop="invalidationPerson" />
      <el-table-column label="处理状态" align="center" prop="handlingStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_handling_status" :value="scope.row.handlingStatus"/>
        </template>
      </el-table-column>
      <el-table-column label="处理意见(呈送科室)" align="center" prop="handlingOpinions" />
      <el-table-column label="处理照片(呈送科室)" align="center" prop="handlingPicture" />
      <el-table-column label="处理人ID(呈送科室)" align="center" prop="handingPersonId" />
      <el-table-column label="处理人(呈送科室)" align="center" prop="handingPerson" />
      <el-table-column label="分析报告" align="center" prop="analyzeReports">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_analyze_reports" :value="scope.row.analyzeReports"/>
        </template>
      </el-table-column>
      <el-table-column label="报告ID" align="center" prop="analyzeReportsId" />
      <el-table-column label="协助部门一" align="center" prop="supportDepartmentOne" />
      <el-table-column label="部门一处理意见" align="center" prop="supportOneOpinions" />
      <el-table-column label="部门一处理照片" align="center" prop="supportOnePicture" />
      <el-table-column label="部门一处理人ID" align="center" prop="supportOnePersonId" />
      <el-table-column label="部门一处理人" align="center" prop="supportOnePerson" />
      <el-table-column label="协助部门二" align="center" prop="supportDepartmentTwo" />
      <el-table-column label="部门二处理意见" align="center" prop="supportTwoOpinions" />
      <el-table-column label="部门二处理照片" align="center" prop="supportTwoPicture" />
      <el-table-column label="部门二处理人ID" align="center" prop="supportTwoPersonId" />
      <el-table-column label="部门二处理人" align="center" prop="supportTwoPerson" />
      <el-table-column label="事件归档" align="center" prop="eventDeterminatione">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.he_event_determinatione" :value="scope.row.eventDeterminatione"/>
        </template>
      </el-table-column>
      <el-table-column label="归档描述" align="center" prop="eventDeterminationeDescription" />
      <el-table-column label="事件归档人ID" align="center" prop="eventDeterminationePersonId" />
      <el-table-column label="事件归档人" align="center" prop="eventDeterminationePerson" />
      <el-table-column label="备注1" align="center" prop="note1" />
      <el-table-column label="备注2" align="center" prop="note2" />
      <el-table-column label="备注3" align="center" prop="note3" />
      <el-table-column label="备注4" align="center" prop="note4" />
      <el-table-column label="备注5" align="center" prop="note5" />
      <el-table-column label="备注6" align="center" prop="note6" />
      <el-table-column label="备注7" align="center" prop="note7" />
      <el-table-column label="备注8" align="center" prop="note8" />
      <el-table-column label="备注9" align="center" prop="note9" />
      <el-table-column label="备注10" align="center" prop="note10" />
      <el-table-column label="创建时间" align="center" prop="creationTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.creationTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="用户ID" align="center" prop="userId" />
      <el-table-column label="部门ID" align="center" prop="deptId" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['project:report:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['project:report:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改事件上报信息对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="事件编号" prop="reportEventNumber">
          <el-input v-model="form.reportEventNumber" placeholder="请输入事件编号" />
        </el-form-item>
        <el-form-item label="事件基本信息表ID" prop="basicEventId">
          <el-input v-model="form.basicEventId" placeholder="请输入事件基本信息表ID" />
        </el-form-item>
        <el-form-item label="上报事件状态" prop="reportEventState">
          <el-select v-model="form.reportEventState" placeholder="请选择上报事件状态">
            <el-option
              v-for="dict in dict.type.he_report_event_state"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="上报事件类型" prop="reportEventType">
          <el-select v-model="form.reportEventType" placeholder="请选择上报事件类型">
            <el-option
              v-for="dict in dict.type.he_report_event_type"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="一级分类" prop="reportFirstLevel">
          <el-input v-model="form.reportFirstLevel" placeholder="请输入一级分类" />
        </el-form-item>
        <el-form-item label="二级分类" prop="reportSecondLevel">
          <el-input v-model="form.reportSecondLevel" placeholder="请输入二级分类" />
        </el-form-item>
        <el-form-item label="描述经过" prop="situationEdescriptionProcess">
          <el-input v-model="form.situationEdescriptionProcess" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="采取措施" prop="situationMeasuresEvent">
          <el-select v-model="form.situationMeasuresEvent" placeholder="请选择采取措施">
            <el-option
              v-for="dict in dict.type.he_situation_measures_event"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="处理措施" prop="situationTakenMeasures">
          <el-input v-model="form.situationTakenMeasures" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="引起后果" prop="situationCausesconsequences">
          <el-input v-model="form.situationCausesconsequences" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="涉及患者" prop="patientInvolved">
          <el-select v-model="form.patientInvolved" placeholder="请选择涉及患者">
            <el-option
              v-for="dict in dict.type.he_patient_involved"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="患者ID" prop="patientId">
          <el-input v-model="form.patientId" placeholder="请输入患者ID" />
        </el-form-item>
        <el-form-item label="患者编号" prop="patientNumber">
          <el-input v-model="form.patientNumber" placeholder="请输入患者编号" />
        </el-form-item>
        <el-form-item label="诊断类别" prop="patientDiagnosisCategory">
          <el-select v-model="form.patientDiagnosisCategory" placeholder="请选择诊断类别">
            <el-option
              v-for="dict in dict.type.he_diagnosis_category"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="病历号/门诊号" prop="patientRecordOutpatient">
          <el-input v-model="form.patientRecordOutpatient" placeholder="请输入病历号/门诊号" />
        </el-form-item>
        <el-form-item label="患者姓名" prop="patientName">
          <el-input v-model="form.patientName" placeholder="请输入患者姓名" />
        </el-form-item>
        <el-form-item label="患者性别" prop="patientGender">
          <el-select v-model="form.patientGender" placeholder="请选择患者性别">
            <el-option
              v-for="dict in dict.type.he_patient_gender"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="患者出生日期" prop="patientDateOfBirth">
          <el-date-picker clearable
            v-model="form.patientDateOfBirth"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择患者出生日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="患者年龄" prop="patientAge">
          <el-input v-model="form.patientAge" placeholder="请输入患者年龄" />
        </el-form-item>
        <el-form-item label="患者年龄阶段" prop="patientAgeStage">
          <el-select v-model="form.patientAgeStage" placeholder="请选择患者年龄阶段">
            <el-option
              v-for="dict in dict.type.he_patient_age_grades"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="患者民族" prop="patientEthnicGroup">
          <el-select v-model="form.patientEthnicGroup" placeholder="请选择患者民族">
            <el-option
              v-for="dict in dict.type.he_patient_ethnic_group"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="患者体重" prop="patientWeight">
          <el-input v-model="form.patientWeight" placeholder="请输入患者体重" />
        </el-form-item>
        <el-form-item label="原患疾病" prop="patientPreDisease">
          <el-input v-model="form.patientPreDisease" placeholder="请输入原患疾病" />
        </el-form-item>
        <el-form-item label="联系方式" prop="patientContact">
          <el-input v-model="form.patientContact" placeholder="请输入联系方式" />
        </el-form-item>
        <el-form-item label="家属电话" prop="patientFamilyNumber">
          <el-input v-model="form.patientFamilyNumber" placeholder="请输入家属电话" />
        </el-form-item>
        <el-form-item label="就诊时间" prop="patientAdmissionTime">
          <el-date-picker clearable
            v-model="form.patientAdmissionTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择就诊时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="科室" prop="patientDepartment">
          <el-input v-model="form.patientDepartment" placeholder="请输入科室" />
        </el-form-item>
        <el-form-item label="床号" prop="patientBedNumber">
          <el-input v-model="form.patientBedNumber" placeholder="请输入床号" />
        </el-form-item>
        <el-form-item label="护理级别" prop="patientNursingLevel">
          <el-select v-model="form.patientNursingLevel" placeholder="请选择护理级别">
            <el-option
              v-for="dict in dict.type.he_patient_nursing_level"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="文化程度" prop="patientEducationLevel">
          <el-select v-model="form.patientEducationLevel" placeholder="请选择文化程度">
            <el-option
              v-for="dict in dict.type.he_patient_education_level"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="诊断" prop="patientDiagnosis">
          <el-input v-model="form.patientDiagnosis" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="发生时间" prop="occurrenceTime">
          <el-date-picker clearable
            v-model="form.occurrenceTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择发生时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="发生日期" prop="occurrenceDate">
          <el-date-picker clearable
            v-model="form.occurrenceDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择发生日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="日期类型" prop="occurrenceDateType">
          <el-select v-model="form.occurrenceDateType" placeholder="请选择日期类型">
            <el-option
              v-for="dict in dict.type.he_date_type"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="发生时段" prop="occurrenceTimePeriod">
          <el-select v-model="form.occurrenceTimePeriod" placeholder="请选择发生时段">
            <el-option
              v-for="dict in dict.type.he_occurrence_time_period"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="发生地点" prop="occurrenceLocation">
          <el-input v-model="form.occurrenceLocation" placeholder="请输入发生地点" />
        </el-form-item>
        <el-form-item label="现场照片" prop="occurrenceScenePhotos">
          <el-input v-model="form.occurrenceScenePhotos" placeholder="请输入现场照片" />
        </el-form-item>
        <el-form-item label="当事人姓名" prop="partyName">
          <el-input v-model="form.partyName" placeholder="请输入当事人姓名" />
        </el-form-item>
        <el-form-item label="当事人年龄" prop="partyAge">
          <el-input v-model="form.partyAge" placeholder="请输入当事人年龄" />
        </el-form-item>
        <el-form-item label="当事人工作年限" prop="partyYearsOfExperience">
          <el-select v-model="form.partyYearsOfExperience" placeholder="请选择当事人工作年限">
            <el-option
              v-for="dict in dict.type.he_years_of_experience"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="当事人工作类别" prop="partyCategory">
          <el-select v-model="form.partyCategory" placeholder="请选择当事人工作类别">
            <el-option
              v-for="dict in dict.type.he_category"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="当事人学历" prop="partyEducation">
          <el-select v-model="form.partyEducation" placeholder="请选择当事人学历">
            <el-option
              v-for="dict in dict.type.he_education"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="当事人职务" prop="partyPosition">
          <el-select v-model="form.partyPosition" placeholder="请选择当事人职务">
            <el-option
              v-for="dict in dict.type.he_position"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="当事人岗位" prop="partyPost">
          <el-select v-model="form.partyPost" placeholder="请选择当事人岗位">
            <el-option
              v-for="dict in dict.type.he_party_post"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="纠纷可能性" prop="resultsPossibilityDispute">
          <el-select v-model="form.resultsPossibilityDispute" placeholder="请选择纠纷可能性">
            <el-option
              v-for="dict in dict.type.he_possibility_of_dispute"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="事件严重程度" prop="resultsEventSeverity">
          <el-select v-model="form.resultsEventSeverity" placeholder="请选择事件严重程度">
            <el-option
              v-for="dict in dict.type.he_event_severity"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="事件分级" prop="resultsEventClassification">
          <el-select v-model="form.resultsEventClassification" placeholder="请选择事件分级">
            <el-option
              v-for="dict in dict.type.he_event_classification"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="伤害严重度" prop="resultsSeverityInjury">
          <el-select v-model="form.resultsSeverityInjury" placeholder="请选择伤害严重度">
            <el-option
              v-for="dict in dict.type.he_severity_of_injury"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="呈报方式" prop="reportMethod">
          <el-select v-model="form.reportMethod" placeholder="请选择呈报方式">
            <el-option
              v-for="dict in dict.type.he_reporting_method"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="上报科室ID" prop="reportDepartmentId">
          <el-input v-model="form.reportDepartmentId" placeholder="请输入上报科室ID" />
        </el-form-item>
        <el-form-item label="上报科室" prop="reportDepartment">
          <el-input v-model="form.reportDepartment" placeholder="请输入上报科室" />
        </el-form-item>
        <el-form-item label="上报状态" prop="reportStatus">
          <el-select v-model="form.reportStatus" placeholder="请选择上报状态">
            <el-option
              v-for="dict in dict.type.he_report_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="填报人ID" prop="reportFillerId">
          <el-input v-model="form.reportFillerId" placeholder="请输入填报人ID" />
        </el-form-item>
        <el-form-item label="填报人" prop="reportFiller">
          <el-input v-model="form.reportFiller" placeholder="请输入填报人" />
        </el-form-item>
        <el-form-item label="报告时间" prop="reportTime">
          <el-date-picker clearable
            v-model="form.reportTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择报告时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="附件图片" prop="reportAttachedImages">
          <el-input v-model="form.reportAttachedImages" placeholder="请输入附件图片" />
        </el-form-item>
        <el-form-item label="其他信息备注" prop="reportOtherRemarks">
          <el-input v-model="form.reportOtherRemarks" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="审核状态" prop="reviewStatus">
          <el-select v-model="form.reviewStatus" placeholder="请选择审核状态">
            <el-option
              v-for="dict in dict.type.he_review_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="呈送科室ID" prop="reviewDepartmentId">
          <el-input v-model="form.reviewDepartmentId" placeholder="请输入呈送科室ID" />
        </el-form-item>
        <el-form-item label="呈送科室" prop="reviewDepartment">
          <el-input v-model="form.reviewDepartment" placeholder="请输入呈送科室" />
        </el-form-item>
        <el-form-item label="审核人ID" prop="reviewPersonId">
          <el-input v-model="form.reviewPersonId" placeholder="请输入审核人ID" />
        </el-form-item>
        <el-form-item label="审核人" prop="reviewPerson">
          <el-input v-model="form.reviewPerson" placeholder="请输入审核人" />
        </el-form-item>
        <el-form-item label="审核时间" prop="reviewTime">
          <el-date-picker clearable
            v-model="form.reviewTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择审核时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="审核意见" prop="reviewAdvice">
          <el-input v-model="form.reviewAdvice" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="事件类型判定" prop="reviewEventType">
          <el-select v-model="form.reviewEventType" placeholder="请选择事件类型判定">
            <el-option
              v-for="dict in dict.type.he_review_event_type"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="回退状态" prop="fallbackStatus">
          <el-select v-model="form.fallbackStatus" placeholder="请选择回退状态">
            <el-option
              v-for="dict in dict.type.he_fallback_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="回退原因" prop="fallbackReason">
          <el-input v-model="form.fallbackReason" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="回退人ID" prop="fallbackPersonId">
          <el-input v-model="form.fallbackPersonId" placeholder="请输入回退人ID" />
        </el-form-item>
        <el-form-item label="回退人" prop="fallbackPerson">
          <el-input v-model="form.fallbackPerson" placeholder="请输入回退人" />
        </el-form-item>
        <el-form-item label="作废状态" prop="invalidationStatus">
          <el-select v-model="form.invalidationStatus" placeholder="请选择作废状态">
            <el-option
              v-for="dict in dict.type.he_invalidation_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="作废原因" prop="invalidationReason">
          <el-input v-model="form.invalidationReason" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="作废人ID" prop="invalidationPersonId">
          <el-input v-model="form.invalidationPersonId" placeholder="请输入作废人ID" />
        </el-form-item>
        <el-form-item label="作废人" prop="invalidationPerson">
          <el-input v-model="form.invalidationPerson" placeholder="请输入作废人" />
        </el-form-item>
        <el-form-item label="处理状态" prop="handlingStatus">
          <el-select v-model="form.handlingStatus" placeholder="请选择处理状态">
            <el-option
              v-for="dict in dict.type.he_handling_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="处理意见(呈送科室)" prop="handlingOpinions">
          <el-input v-model="form.handlingOpinions" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="处理照片(呈送科室)" prop="handlingPicture">
          <el-input v-model="form.handlingPicture" placeholder="请输入处理照片(呈送科室)" />
        </el-form-item>
        <el-form-item label="处理人ID(呈送科室)" prop="handingPersonId">
          <el-input v-model="form.handingPersonId" placeholder="请输入处理人ID(呈送科室)" />
        </el-form-item>
        <el-form-item label="处理人(呈送科室)" prop="handingPerson">
          <el-input v-model="form.handingPerson" placeholder="请输入处理人(呈送科室)" />
        </el-form-item>
        <el-form-item label="分析报告" prop="analyzeReports">
          <el-select v-model="form.analyzeReports" placeholder="请选择分析报告">
            <el-option
              v-for="dict in dict.type.he_analyze_reports"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="报告ID" prop="analyzeReportsId">
          <el-input v-model="form.analyzeReportsId" placeholder="请输入报告ID" />
        </el-form-item>
        <el-form-item label="协助部门一" prop="supportDepartmentOne">
          <el-input v-model="form.supportDepartmentOne" placeholder="请输入协助部门一" />
        </el-form-item>
        <el-form-item label="部门一处理意见" prop="supportOneOpinions">
          <el-input v-model="form.supportOneOpinions" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="部门一处理照片" prop="supportOnePicture">
          <el-input v-model="form.supportOnePicture" placeholder="请输入部门一处理照片" />
        </el-form-item>
        <el-form-item label="部门一处理人ID" prop="supportOnePersonId">
          <el-input v-model="form.supportOnePersonId" placeholder="请输入部门一处理人ID" />
        </el-form-item>
        <el-form-item label="部门一处理人" prop="supportOnePerson">
          <el-input v-model="form.supportOnePerson" placeholder="请输入部门一处理人" />
        </el-form-item>
        <el-form-item label="协助部门二" prop="supportDepartmentTwo">
          <el-input v-model="form.supportDepartmentTwo" placeholder="请输入协助部门二" />
        </el-form-item>
        <el-form-item label="部门二处理意见" prop="supportTwoOpinions">
          <el-input v-model="form.supportTwoOpinions" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="部门二处理照片" prop="supportTwoPicture">
          <el-input v-model="form.supportTwoPicture" placeholder="请输入部门二处理照片" />
        </el-form-item>
        <el-form-item label="部门二处理人ID" prop="supportTwoPersonId">
          <el-input v-model="form.supportTwoPersonId" placeholder="请输入部门二处理人ID" />
        </el-form-item>
        <el-form-item label="部门二处理人" prop="supportTwoPerson">
          <el-input v-model="form.supportTwoPerson" placeholder="请输入部门二处理人" />
        </el-form-item>
        <el-form-item label="事件归档" prop="eventDeterminatione">
          <el-select v-model="form.eventDeterminatione" placeholder="请选择事件归档">
            <el-option
              v-for="dict in dict.type.he_event_determinatione"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="归档描述" prop="eventDeterminationeDescription">
          <el-input v-model="form.eventDeterminationeDescription" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="事件归档人ID" prop="eventDeterminationePersonId">
          <el-input v-model="form.eventDeterminationePersonId" placeholder="请输入事件归档人ID" />
        </el-form-item>
        <el-form-item label="事件归档人" prop="eventDeterminationePerson">
          <el-input v-model="form.eventDeterminationePerson" placeholder="请输入事件归档人" />
        </el-form-item>
        <el-form-item label="备注1" prop="note1">
          <el-input v-model="form.note1" placeholder="请输入备注1" />
        </el-form-item>
        <el-form-item label="备注2" prop="note2">
          <el-input v-model="form.note2" placeholder="请输入备注2" />
        </el-form-item>
        <el-form-item label="备注3" prop="note3">
          <el-input v-model="form.note3" placeholder="请输入备注3" />
        </el-form-item>
        <el-form-item label="备注4" prop="note4">
          <el-input v-model="form.note4" placeholder="请输入备注4" />
        </el-form-item>
        <el-form-item label="备注5" prop="note5">
          <el-input v-model="form.note5" placeholder="请输入备注5" />
        </el-form-item>
        <el-form-item label="备注6" prop="note6">
          <el-input v-model="form.note6" placeholder="请输入备注6" />
        </el-form-item>
        <el-form-item label="备注7" prop="note7">
          <el-input v-model="form.note7" placeholder="请输入备注7" />
        </el-form-item>
        <el-form-item label="备注8" prop="note8">
          <el-input v-model="form.note8" placeholder="请输入备注8" />
        </el-form-item>
        <el-form-item label="备注9" prop="note9">
          <el-input v-model="form.note9" placeholder="请输入备注9" />
        </el-form-item>
        <el-form-item label="备注10" prop="note10">
          <el-input v-model="form.note10" placeholder="请输入备注10" />
        </el-form-item>
        <el-form-item label="创建时间" prop="creationTime">
          <el-date-picker clearable
            v-model="form.creationTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择创建时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="用户ID" prop="userId">
          <el-input v-model="form.userId" placeholder="请输入用户ID" />
        </el-form-item>
        <el-form-item label="部门ID" prop="deptId">
          <el-input v-model="form.deptId" placeholder="请输入部门ID" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listReport, getReport, delReport, addReport, updateReport } from "@/api/project/report";

export default {
  name: "Report",
  dicts: ['he_education', 'he_patient_gender', 'he_party_post', 'he_report_event_state', 'he_report_event_type', 'he_patient_age_grades', 'he_event_severity', 'he_review_status', 'he_report_status', 'he_position', 'he_event_classification', 'he_review_event_type', 'he_possibility_of_dispute', 'he_patient_involved', 'he_analyze_reports', 'he_fallback_status', 'he_occurrence_time_period', 'he_event_determinatione', 'he_situation_measures_event', 'he_patient_education_level', 'he_diagnosis_category', 'he_years_of_experience', 'he_severity_of_injury', 'he_reporting_method', 'he_patient_nursing_level', 'he_date_type', 'he_invalidation_status', 'he_patient_ethnic_group', 'he_category', 'he_handling_status'],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 事件上报信息表格数据
      reportList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        reportEventNumber: null,
        basicEventId: null,
        reportEventState: null,
        reportEventType: null,
        reportFirstLevel: null,
        reportSecondLevel: null,
        situationEdescriptionProcess: null,
        situationMeasuresEvent: null,
        situationTakenMeasures: null,
        situationCausesconsequences: null,
        patientInvolved: null,
        patientId: null,
        patientNumber: null,
        patientDiagnosisCategory: null,
        patientRecordOutpatient: null,
        patientName: null,
        patientGender: null,
        patientDateOfBirth: null,
        patientAge: null,
        patientAgeStage: null,
        patientEthnicGroup: null,
        patientWeight: null,
        patientPreDisease: null,
        patientContact: null,
        patientFamilyNumber: null,
        patientAdmissionTime: null,
        patientDepartment: null,
        patientBedNumber: null,
        patientNursingLevel: null,
        patientEducationLevel: null,
        patientDiagnosis: null,
        occurrenceTime: null,
        occurrenceDate: null,
        occurrenceDateType: null,
        occurrenceTimePeriod: null,
        occurrenceLocation: null,
        occurrenceScenePhotos: null,
        partyName: null,
        partyAge: null,
        partyYearsOfExperience: null,
        partyCategory: null,
        partyEducation: null,
        partyPosition: null,
        partyPost: null,
        resultsPossibilityDispute: null,
        resultsEventSeverity: null,
        resultsEventClassification: null,
        resultsSeverityInjury: null,
        reportMethod: null,
        reportDepartmentId: null,
        reportDepartment: null,
        reportStatus: null,
        reportFillerId: null,
        reportFiller: null,
        reportTime: null,
        reportAttachedImages: null,
        reportOtherRemarks: null,
        reviewStatus: null,
        reviewDepartmentId: null,
        reviewDepartment: null,
        reviewPersonId: null,
        reviewPerson: null,
        reviewTime: null,
        reviewAdvice: null,
        reviewEventType: null,
        fallbackStatus: null,
        fallbackReason: null,
        fallbackPersonId: null,
        fallbackPerson: null,
        invalidationStatus: null,
        invalidationReason: null,
        invalidationPersonId: null,
        invalidationPerson: null,
        handlingStatus: null,
        handlingOpinions: null,
        handlingPicture: null,
        handingPersonId: null,
        handingPerson: null,
        analyzeReports: null,
        analyzeReportsId: null,
        supportDepartmentOne: null,
        supportOneOpinions: null,
        supportOnePicture: null,
        supportOnePersonId: null,
        supportOnePerson: null,
        supportDepartmentTwo: null,
        supportTwoOpinions: null,
        supportTwoPicture: null,
        supportTwoPersonId: null,
        supportTwoPerson: null,
        eventDeterminatione: null,
        eventDeterminationeDescription: null,
        eventDeterminationePersonId: null,
        eventDeterminationePerson: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null,
        creationTime: null,
        userId: null,
        deptId: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询事件上报信息列表 */
    getList() {
      this.loading = true;
      listReport(this.queryParams).then(response => {
        this.reportList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        reportEventNumber: null,
        basicEventId: null,
        reportEventState: null,
        reportEventType: null,
        reportFirstLevel: null,
        reportSecondLevel: null,
        situationEdescriptionProcess: null,
        situationMeasuresEvent: null,
        situationTakenMeasures: null,
        situationCausesconsequences: null,
        patientInvolved: null,
        patientId: null,
        patientNumber: null,
        patientDiagnosisCategory: null,
        patientRecordOutpatient: null,
        patientName: null,
        patientGender: null,
        patientDateOfBirth: null,
        patientAge: null,
        patientAgeStage: null,
        patientEthnicGroup: null,
        patientWeight: null,
        patientPreDisease: null,
        patientContact: null,
        patientFamilyNumber: null,
        patientAdmissionTime: null,
        patientDepartment: null,
        patientBedNumber: null,
        patientNursingLevel: null,
        patientEducationLevel: null,
        patientDiagnosis: null,
        occurrenceTime: null,
        occurrenceDate: null,
        occurrenceDateType: null,
        occurrenceTimePeriod: null,
        occurrenceLocation: null,
        occurrenceScenePhotos: null,
        partyName: null,
        partyAge: null,
        partyYearsOfExperience: null,
        partyCategory: null,
        partyEducation: null,
        partyPosition: null,
        partyPost: null,
        resultsPossibilityDispute: null,
        resultsEventSeverity: null,
        resultsEventClassification: null,
        resultsSeverityInjury: null,
        reportMethod: null,
        reportDepartmentId: null,
        reportDepartment: null,
        reportStatus: null,
        reportFillerId: null,
        reportFiller: null,
        reportTime: null,
        reportAttachedImages: null,
        reportOtherRemarks: null,
        reviewStatus: null,
        reviewDepartmentId: null,
        reviewDepartment: null,
        reviewPersonId: null,
        reviewPerson: null,
        reviewTime: null,
        reviewAdvice: null,
        reviewEventType: null,
        fallbackStatus: null,
        fallbackReason: null,
        fallbackPersonId: null,
        fallbackPerson: null,
        invalidationStatus: null,
        invalidationReason: null,
        invalidationPersonId: null,
        invalidationPerson: null,
        handlingStatus: null,
        handlingOpinions: null,
        handlingPicture: null,
        handingPersonId: null,
        handingPerson: null,
        analyzeReports: null,
        analyzeReportsId: null,
        supportDepartmentOne: null,
        supportOneOpinions: null,
        supportOnePicture: null,
        supportOnePersonId: null,
        supportOnePerson: null,
        supportDepartmentTwo: null,
        supportTwoOpinions: null,
        supportTwoPicture: null,
        supportTwoPersonId: null,
        supportTwoPerson: null,
        eventDeterminatione: null,
        eventDeterminationeDescription: null,
        eventDeterminationePersonId: null,
        eventDeterminationePerson: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null,
        creationTime: null,
        updateTime: null,
        userId: null,
        deptId: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加事件上报信息";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids
      getReport(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改事件上报信息";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateReport(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addReport(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除事件上报信息编号为"' + ids + '"的数据项？').then(function() {
        return delReport(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('project/report/export', {
        ...this.queryParams
      }, `report_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
